import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class QuickSort {
    public static void main(String[] args) throws IOException {
        BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));
        String str;
        while((str=bf.readLine())!=null){
            String s=bf.readLine();
            String []strs=s.split(" ");
            int arr[]=new int[strs.length];
            for(int i=0;i<strs.length;i++){
                arr[i]=Integer.valueOf(strs[i]);
            }
            quick_sort(arr,0,arr.length-1);
            for(int j=0;j< arr.length;j++){
                if(j< arr.length-1){
                    System.out.print(arr[j]+" ");
                }else{
                    System.out.println(arr[j]);
                }
            }
        }
    }
    public static void quick_sort(int[]arr,int l,int r){
        if(l>=r){
            return;
        }
        int i=l,j=r;
        int x=arr[l];
        while(i<j){
            while (i<j&&arr[i]<x){
                i++;
            }
            while (i<j&&arr[j]>x){
                j--;
            }
            int t=arr[i];
            arr[i]=arr[j];
            arr[j]=t;
        }
        quick_sort(arr,l,i-1);
        quick_sort(arr,i+1,r);

    }
}











